

#include "EnergyTimeDerivativeADKernel.h"

registerMooseObject("TrilobitaApp", EnergyTimeDerivativeADKernel);

InputParameters
EnergyTimeDerivativeADKernel::validParams()
{
    InputParameters params = ADTimeDerivative::validParams();
    return params;
}

EnergyTimeDerivativeADKernel::EnergyTimeDerivativeADKernel(
    const InputParameters& parameters)
    : ADTimeDerivative(parameters),
    _energy_td_strong_residual(getADMaterialProperty<Real>("energy_td_strong_residual")),
    _energy_td_strong_residual_factor(getADMaterialProperty<Real>("energy_td_strong_residual_factor"))
{
   
}

ADReal
EnergyTimeDerivativeADKernel::precomputeQpResidual()
{
   // return _energy_td_strong_residual[_qp];
   return _energy_td_strong_residual_factor[_qp] * _u_dot[_qp];
}